<%--
*
* 预览数据:按照指定的SQL预览生成的配置
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.sky.fisher.service.FisherService" %>
<%@ page import="com.sky.common.http.HTTPUtils"%>
<%@ page import="org.apache.commons.logging.Log"%>
<%@ page import="org.apache.commons.logging.LogFactory"%>
<%
	Log logger = LogFactory.getLog(FisherService.class);
	Map<String, String[]> paramters = null;
	String strSQL = null;
	try{
		paramters = request.getParameterMap(); 
		logger.debug("参数：\n"+HTTPUtils.getParameterMap(request));
		String jsonresult=FisherService.preview(paramters);
		response.setContentType("text/html"); 
		out.println(jsonresult); 
	}catch(Throwable e){
	  	logger.error("SQL语句：\n"+paramters.get("sql")[0]);	
	  	e.printStackTrace();
	  	logger.error(e.getMessage(),e);
		throw e;
	}
%>	
